var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.npc_ChangeController(3004302, "oid=367772", 400, 124, 5, 350, 450, 1, false, 0, false);
            cm.npc_ChangeController(3004303, "oid=367773", 313, 124, 5, 277, 363, 1, false, 0, false);
            cm.npc_ChangeController(3004300, "oid=367774", -57, 124, 1, -107, -7, 1, false, 0, false);
            cm.fieldEffect_PlayBGM("Bgm00.img/Silence", 0, 0);
            cm.curNodeEventEnd(true);
            cm.eventSKill(0);
            cm.setInGameDirectionMode(true, false, true);
            cm.inGameDirectionEvent_SetAdditionalEffectVisibleForInGameDirection2();
            cm.fieldEffect_InsertCanvas(1, 255, 0, 0, 0, 0, 0);
            cm.setStandAloneMode(true);
            cm.sendNormalTalk_Bottom("#face4#小混蛋，今后可别落在我手里……", 37, 3004322, false, true);
            cm.curNodeEventEnd(true);
            cm.effect_Voice("Voice5.img/CH1/Elwyn/17", 128)
        } else {
            if (status === a++) {
                cm.sendNormalTalk_Bottom("#face2#那孩子到底是什么来历？\r\n居然一眼就看出了自己是沼泽幻化出的艾尔达投影。", 37, 3004323, true, true);
                cm.effect_Voice("Voice5.img/CH1/Lily/21", 128)
            } else {
                if (status === a++) {
                    cm.sendNormalTalk_Bottom("#face2#还有，他使用的魔法……\r\n我甚至不知道那能否称为‘魔法’。", 37, 3004323, true, true);
                    cm.effect_Voice("Voice5.img/CH1/Lily/22", 128)
                } else {
                    if (status === a++) {
                        cm.fieldEffect_InsertCanvas(1, 255, 0, 0, 0, 0, 0);
                        cm.inGameDirectionEvent_AskAnswerTime(1200)
                    } else {
                        if (status === a++) {
                            cm.fieldEffect_InsertCanvas(0, 0, 0, 0, 0, 1000, 0);
                            cm.inGameDirectionEvent_AskAnswerTime(1400)
                        } else {
                            if (status === a++) {
                                cm.inGameDirectionEvent_AskAnswerTime(1000)
                            } else {
                                if (status === a++) {
                                    cm.fieldEffect_PlayBGM("Bgm50/TearsOfTheWorld", 0, 0);
                                    cm.sendNormalTalk_Bottom("啊，这里是……", 57, 0, false, true)
                                } else {
                                    if (status === a++) {
                                        cm.inGameDirectionEvent_AskAnswerTime(1000)
                                    } else {
                                        if (status === a++) {
                                            cm.eventSKill(0);
                                            cm.setInGameDirectionMode(false, true, false);
                                            cm.setStandAloneMode(false);
                                            cm.forceCompleteQuest(37310);
                                            cm.dispose()
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
};